/**
 * @file types_size.c
 * Copyright (c) 2022 Gaaagaa. All rights reserved.
 * 
 * @author  : Gaaagaa
 * @date    : 2022-11-05
 * @version : 1.0.0.0
 * @brief   : 测试所定义的通用 基础数据类型 的 sizeof() 值。
 */

/**
 * The MIT License (MIT)
 * Copyright (c) Gaaagaa. All rights reserved.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

#include "std_comm.h"
#include <stdio.h>

////////////////////////////////////////////////////////////////////////////////

int main(int argc, char * argv[])
{
    printf("sizeof(xstd_char_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_char_t   ));
    printf("sizeof(xstd_uchar_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_uchar_t  ));
    printf("sizeof(xstd_int8_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_int8_t   ));
    printf("sizeof(xstd_int16_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_int16_t  ));
    printf("sizeof(xstd_int32_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_int32_t  ));
    printf("sizeof(xstd_int64_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_int64_t  ));
    printf("sizeof(xstd_uint8_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_uint8_t  ));
    printf("sizeof(xstd_uint16_t ) == %d\n", (xstd_int32_t)sizeof(xstd_uint16_t ));
    printf("sizeof(xstd_uint32_t ) == %d\n", (xstd_int32_t)sizeof(xstd_uint32_t ));
    printf("sizeof(xstd_uint64_t ) == %d\n", (xstd_int32_t)sizeof(xstd_uint64_t ));
    printf("sizeof(xstd_long_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_long_t   ));
    printf("sizeof(xstd_llong_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_llong_t  ));
    printf("sizeof(xstd_ulong_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_ulong_t  ));
    printf("sizeof(xstd_ullong_t ) == %d\n", (xstd_int32_t)sizeof(xstd_ullong_t ));
    printf("sizeof(xstd_float_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_float_t  ));
    printf("sizeof(xstd_double_t ) == %d\n", (xstd_int32_t)sizeof(xstd_double_t ));
    printf("sizeof(xstd_ldouble_t) == %d\n", (xstd_int32_t)sizeof(xstd_ldouble_t));
    printf("sizeof(xstd_void_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_void_t   ));
    printf("sizeof(xstd_byte_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_byte_t   ));
    printf("sizeof(xstd_bool_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_bool_t   ));
    printf("sizeof(xstd_bptr_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_bptr_t   ));
    printf("sizeof(xstd_handle_t ) == %d\n", (xstd_int32_t)sizeof(xstd_handle_t ));
    printf("sizeof(xstd_owner_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_owner_t  ));
    printf("sizeof(xstd_mptr_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_mptr_t   ));
    printf("sizeof(xstd_elem_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_elem_t   ));
    printf("sizeof(xstd_ssize_t  ) == %d\n", (xstd_int32_t)sizeof(xstd_ssize_t  ));
    printf("sizeof(xstd_size_t   ) == %d\n", (xstd_int32_t)sizeof(xstd_size_t   ));

    return 0;
}

////////////////////////////////////////////////////////////////////////////////
